From 558ae6ac98d9351150f42bffd2c055fa9d1831bb Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 7 Apr 2005 12:41:40 +0000 Subject: [PATCH] Return TRUE if the cache is newer than the directory. (#172852, Jacob 2005-04-07 Matthias Clasen * gtk/updateiconcache.c (is_cache_up_to_date): Return TRUE if the cache is newer than the directory. (#172852, Jacob Kroon) --- ChangeLog | 4 ++++ ChangeLog.pre-2-10 | 4 ++++ ChangeLog.pre-2-8 | 4 ++++ gtk/updateiconcache.c | 2 +- 4 files changed, 13 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 70585fcc28..7946d52721 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2005-04-07 Matthias Clasen + * gtk/updateiconcache.c (is_cache_up_to_date): Return + TRUE if the cache is newer than the directory. (#172852, + Jacob Kroon) + * configure.in: Replace an explicit pkg-config by $PKG_CONFIG. (#168074, Hans-Wolfgang Loidl) diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 70585fcc28..7946d52721 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,5 +1,9 @@ 2005-04-07 Matthias Clasen + * gtk/updateiconcache.c (is_cache_up_to_date): Return + TRUE if the cache is newer than the directory. (#172852, + Jacob Kroon) + * configure.in: Replace an explicit pkg-config by $PKG_CONFIG. (#168074, Hans-Wolfgang Loidl) diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 70585fcc28..7946d52721 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,5 +1,9 @@ 2005-04-07 Matthias Clasen + * gtk/updateiconcache.c (is_cache_up_to_date): Return + TRUE if the cache is newer than the directory. (#172852, + Jacob Kroon) + * configure.in: Replace an explicit pkg-config by $PKG_CONFIG. (#168074, Hans-Wolfgang Loidl) diff --git a/gtk/updateiconcache.c b/gtk/updateiconcache.c index 8063f467a0..82aa18d539 100644 --- a/gtk/updateiconcache.c +++ b/gtk/updateiconcache.c @@ -78,7 +78,7 @@ is_cache_up_to_date (const gchar *path) } /* Check mtime */ - return cache_stat.st_mtime <= path_stat.st_mtime; + return cache_stat.st_mtime >= path_stat.st_mtime; } typedef struct -- 2.30.2